Tag: kernel fusion

2 reviews

Kernel optimization for LLM training: techniques, trade-offs, and use cases

Which kernel-level optimization techniques most improve LLM training efficiency, and what are the trade-offs and use cases of each?

Kernel-level optimization is where most LLM training efficiency gains of the last six years come from, and the field splits into five families: fused attention kernels, low-precision GEMM kernels, mixture-of-experts kernels, communication-overlap kernels, and fused elementwise/optimizer kernels. The evidence is consistent that each family delivers large, workload-specific gains — 2x on attention, 25-75% on FP8 training, 1.4-5.7x on MoE layers, 1.2-2.9x on long-context training — but the gains are conditional on hardware generation, model architecture, and engineering effort, and almost every headline number is vendor- or single-group-benchmarked. The main caveat: no shared benchmark exists, so cross-paper 'x-times faster' claims are not directly comparable.

Updated 15 Aug 202675 sources2018–2026Deep21 min read

GPU kernels · LLM training · FlashAttention · FP8 training · Mixture-of-Experts · kernel fusion · communication overlap

Kernel fusion for efficient LLM training and inference

Which kernel-fusion methods improve the efficiency of large language model training and inference, and what gains do they deliver?

Kernel fusion — computing several operations in one GPU kernel to cut memory traffic and launch overhead — is the dominant mechanism behind the efficiency gains of the past six years. The evidence is consistent that attention kernels (FlashAttention and its descendants) deliver 2–4x speedups and near-constant memory in sequence length, that fused training-op kernels (Liger and peers) recover roughly 20% throughput and 60% memory on the training side, and that FP8 pipelines now train 10–75% faster with matched quality. Most evidence is preprint-grade and hardware-specific; the field lacks a shared benchmark, and the newest frontier is using LLMs themselves to write the kernels.

Updated 8 Aug 202692 sources2019–2026Deep17 min read

kernel fusion · GPU kernels · FlashAttention · LLM training · LLM inference · Triton · FP8 · Mixture-of-Experts